using IQIGame.Onigao.Framework;

namespace IQIGame.Onigao.GamePlay
{
    public abstract class TReusableEvtComponent : TViewComponent, IReusableClass
    {
        public abstract uint MaxStore { get; }

        public abstract void OnPoolReset();

        public virtual void OnReset()
        {
            OnPoolReset();
            _entity = null;
        }

        public virtual void Free()
        {
            ClassPool.PutAutoType(this);
        }

        protected override void OnDispose()
        {

        }
    }
}
